package com.peak.distribution.vo.order;

import com.peak.distribution.enums.Constants;
import com.peak.distribution.enums.OrderStatus;
import com.peak.spring.boot.api.web.IdVo;
import com.peak.spring.boot.core.mapper.Format;
import com.peak.spring.boot.core.mapper.Format.TransferFormat;
import com.peak.spring.boot.core.mapper.Transfer;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DisOrderGoodsVo extends IdVo {

	private static final long serialVersionUID = Constants.DISTRIBUTION_VERSION;

	/** 购买数量 */
	private Integer quantity;

	/** 购买单价 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer unitPrice;

	/** 购买总价 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer totalPrice;

	/** 货号 */
	private String skuNo;
	
	/** 商品编号 */
	private String partNo;

	/** 商品名称 */
	private String name;
	
	/** 商品名称 */
	@Transfer(mapping = "goods.id")
	private Integer goodsId;
	
	/** 订单id */
	@Transfer(mapping = "order.id")
	private Integer orderId;
	
	/** 订单状态 */
	@Transfer(mapping = "order.status")
	private OrderStatus orderStatus;
}
